# Contributor: guddaff <guddaff@protonmail.com>
# Maintainer: guddaff <guddaff@protonmail.com>
pkgname=lumins
pkgver=0.4.0
pkgrel=2
pkgdesc="tool for local file synchronizing"
url="https://github.com/wchang22/LuminS"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le"  #limited by rust/cargo
options="!check" #Test are passing but creation of apkindex crashes
license="MIT"
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/wchang22/LuminS/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir/LuminS-$pkgver"


build() {
	cargo auditable build --release --locked
}

package() {
	cargo auditable install --locked --path . --root=$pkgdir/usr
	rm "$pkgdir"/usr/.crates*
}

sha512sums="d69b63573cb2278fcd7bb952a56492fe377c2b5fc74653cccf2fa217736e86508698c605e769b261d3912e758d1f1cc8b0a9d3d0ac3a127b7a0d4764ec66a0bb  lumins-0.4.0.tar.gz"
